home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / Appearance.a < prev    next >
Text File  |  1996-05-01  |  7KB  |  242 lines

  1. ;
  2. ;    File:        Appearance.a
  3. ;
  4. ;    Contains:    Appearance Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 8
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__APPEARANCE__') = 'UNDEFINED' THEN
  19. __APPEARANCE__ SET 1
  20.  
  21.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  22.     include 'Quickdraw.a'
  23.     ENDIF
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27.     IF FOR_SYSTEM8_COOPERATIVE THEN
  28. ;  Appearance Manager Error Codes (will move to Errors.i) -4200 through -4249 
  29.  
  30. appearanceBadPatternIndexErr    EQU        -4201                ; pattern index invalid 
  31. ;
  32. ; * System Pattern (PixPat) Indices for GetThemePixPat and SetThemePen
  33. ;
  34.  
  35. kThemeGrowIconBorderPattern        EQU        1                    ; Windows 
  36. kThemeRootMenuBackgroundPattern    EQU        2                    ; Menus 
  37. kThemeSelectedRootMenuBackgroundPattern EQU 3
  38. kThemeDisabledRootMenuBackgroundPattern EQU 4
  39. kThemeMenuBackgroundPattern        EQU        5
  40. kThemeSelectedMenuBackgroundPattern EQU    6
  41. kThemeDisabledMenuBackgroundPattern EQU    7
  42. kThemeActivePushButtonBackgroundPattern EQU 8                ; Controls 
  43. kThemePressedPushButtonBackgroundPattern EQU 9
  44. kThemeInactivePushButtonBackgroundPattern EQU 10
  45. kThemeActiveOffIconButtonBackgroundPattern EQU 11
  46. kThemeActiveOnIconButtonBackgroundPattern EQU 12
  47. kThemePressedOffIconButtonBackgroundPattern EQU 13
  48. kThemePressedOnIconButtonBackgroundPattern EQU 14
  49. kThemeMixedIconButtonBackgroundPattern EQU 15
  50. kThemeInactiveIconButtonBackgroundPattern EQU 16
  51. kThemeActivePopupButtonBackgroundPattern EQU 17
  52. kThemePressedPopupButtonBackgroundPattern EQU 18
  53. kThemeInactivePopupButtonBackgroundPattern EQU 19
  54. kThemeActiveDialogBackgroundPattern EQU    20                    ; Dialogs 
  55. kThemeInactiveDialogBackgroundPattern EQU 21
  56. kThemeActiveAlertBackgroundPattern EQU    22
  57. kThemeInactiveAlertBackgroundPattern EQU 23
  58. kThemeActiveModelessDialogBackgroundPattern EQU 24
  59. kThemeInactiveModelessDialogBackgroundPattern EQU 25
  60. kThemeObjectFocusPattern        EQU        26
  61. kThemeActiveWindowHeaderBackgroundPattern EQU 27            ; Primitives 
  62. kThemeInactiveWindowHeaderBackgroundPattern EQU 28
  63. kThemeFinderListViewSortColumnPattern EQU 29                ; Finder 
  64. kThemeFinderListViewBackgroundPattern EQU 30
  65. kThemeFinderListViewSeparatorLinePattern EQU 31
  66. kThemeFinderWindowBackgroundPattern EQU    32
  67. kThemeUtilityWindowBackgroundPattern EQU 33                    ; Miscellaneous 
  68. kThemeStatusBarBackgroundPattern EQU    34
  69. kThemeInactiveStatusBarBackgroundPattern EQU 35
  70. kThemeDragHilitePattern            EQU        36                    ; Drag Mgr 
  71. ;
  72. ; * System Text and other RGBColor Indices for GetThemeColor and SetThemeFore/BackColor.
  73. ;
  74.  
  75. kThemeActiveDocumentWindowTitleColor EQU 1                    ; Windows 
  76. kThemeInactiveDocumentWindowTitleColor EQU 2
  77. kThemeActiveMovableModalWindowTitleColor EQU 3
  78. kThemeInactiveMovableModalWindowTitleColor EQU 4
  79. kThemeActiveFloatingWindowTitleColor EQU 5
  80. kThemeInactiveFloatingWindowTitleColor EQU 6
  81. kThemeActiveDrawerWindowTitleColor EQU    7
  82. kThemeInactiveDrawerWindowTitleColor EQU 8
  83. kThemeRootMenuTextColor            EQU        9                    ; Menus 
  84. kThemeSelectedRootMenuTextColor    EQU        10
  85. kThemeDisabledRootMenuTextColor    EQU        11
  86. kThemeMenuTextColor                EQU        12
  87. kThemeSelectedMenuTextColor        EQU        13
  88. kThemeDisabledMenuTextColor        EQU        14
  89. kThemeActivePushButtonTextColor    EQU        15                    ; Controls 
  90. kThemePressedPushButtonTextColor EQU    16
  91. kThemeInactivePushButtonTextColor EQU    17
  92. kThemeActivePopupLabelTextColor    EQU        18
  93. kThemeInactivePopupLabelTextColor EQU    19
  94. kThemeActivePopupArrowColor        EQU        20
  95. kThemePressedPopupArrowColor    EQU        21
  96. kThemeInactivePopupArrowColor    EQU        22
  97. kThemeActiveDialogTextColor        EQU        23                    ; Dialogs 
  98. kThemeInactiveDialogTextColor    EQU        24
  99. kThemeActiveAlertTextColor        EQU        25
  100. kThemeInactiveAlertTextColor    EQU        26
  101. kThemeActiveModelessDialogTextColor EQU    27
  102. kThemeInactiveModelessDialogTextColor EQU 28
  103. kThemeActiveWindowHeaderTextColor EQU    29                    ; Primitives 
  104. kThemeInactiveWindowHeaderTextColor EQU    30
  105. kThemeIconLabelTextColor        EQU        31                    ; Finder 
  106. kThemeIconLabelBackgroundColor    EQU        32
  107. kThemeFinderListViewTextColor    EQU        33
  108. kThemeAppleGuideCoachmarkColor    EQU        34                    ; Miscellaneous 
  109. kThemeChasingArrowsColor        EQU        35
  110. kThemeStatusBarTextColor        EQU        36
  111. kThemeInactiveStatusBarTextColor EQU    37
  112. ;
  113. ; *    System Appearance Information
  114. ;
  115. ;
  116. ; System Patterns
  117. ; *
  118. ; * WARNING: Patterns returned by GetThemePixPat are shared by the system and other
  119. ; * running applications.  These patterns are updated by the system automatically
  120. ; * whenever the theme changes.  They are system-owned and must not be disposed.
  121. ; * Never dispose a PixPatHandle obtained from GetThemePixPat or the system will crash.
  122. ;
  123. ;
  124. ; pascal OSStatus GetThemePixPat(SInt16 patternIndex, PixPatHandle *pixPat)
  125. ;
  126.     IF GENERATINGCFM THEN
  127.         IMPORT_CFM_FUNCTION GetThemePixPat
  128.     ENDIF
  129.  
  130. ;
  131. ; pascal OSStatus SetThemePen(SInt16 patternIndex)
  132. ;
  133.     IF GENERATINGCFM THEN
  134.         IMPORT_CFM_FUNCTION SetThemePen
  135.     ENDIF
  136.  
  137. ;  System colors 
  138. ;
  139. ; pascal OSStatus SetThemeForeColor(SInt16 foreColorIndex)
  140. ;
  141.     IF GENERATINGCFM THEN
  142.         IMPORT_CFM_FUNCTION SetThemeForeColor
  143.     ENDIF
  144.  
  145. ;
  146. ; pascal OSStatus SetThemeBackColor(SInt16 backColorIndex)
  147. ;
  148.     IF GENERATINGCFM THEN
  149.         IMPORT_CFM_FUNCTION SetThemeBackColor
  150.     ENDIF
  151.  
  152. ;
  153. ; pascal OSStatus GetThemeColor(SInt16 colorIndex, RGBColor *color)
  154. ;
  155.     IF GENERATINGCFM THEN
  156.         IMPORT_CFM_FUNCTION GetThemeColor
  157.     ENDIF
  158.  
  159. ;
  160. ; *    Appearance Drawing Primitives
  161. ;
  162. ;
  163. ; pascal OSStatus DrawThemePrimaryGroup(const Rect *rect, Boolean isActive)
  164. ;
  165.     IF GENERATINGCFM THEN
  166.         IMPORT_CFM_FUNCTION DrawThemePrimaryGroup
  167.     ENDIF
  168.  
  169. ;
  170. ; pascal OSStatus DrawThemeSecondaryGroup(const Rect *rect, Boolean isActive)
  171. ;
  172.     IF GENERATINGCFM THEN
  173.         IMPORT_CFM_FUNCTION DrawThemeSecondaryGroup
  174.     ENDIF
  175.  
  176. ;
  177. ; pascal OSStatus DrawThemeSeparator(const Rect *rect, Boolean isActive)
  178. ;
  179.     IF GENERATINGCFM THEN
  180.         IMPORT_CFM_FUNCTION DrawThemeSeparator
  181.     ENDIF
  182.  
  183. ;
  184. ; pascal OSStatus DrawThemeWindowHeader(const Rect *rect, Boolean isActive)
  185. ;
  186.     IF GENERATINGCFM THEN
  187.         IMPORT_CFM_FUNCTION DrawThemeWindowHeader
  188.     ENDIF
  189.  
  190. ;
  191. ; pascal OSStatus DrawThemePlacard(const Rect *rect, Boolean isActive)
  192. ;
  193.     IF GENERATINGCFM THEN
  194.         IMPORT_CFM_FUNCTION DrawThemePlacard
  195.     ENDIF
  196.  
  197. ;
  198. ; pascal OSStatus DrawThemeDialogFrame(const Rect *rect, Boolean isActive)
  199. ;
  200.     IF GENERATINGCFM THEN
  201.         IMPORT_CFM_FUNCTION DrawThemeDialogFrame
  202.     ENDIF
  203.  
  204. ;
  205. ; pascal OSStatus DrawThemeTextBoxFrame(const Rect *textBoxRect, Boolean isActive)
  206. ;
  207.     IF GENERATINGCFM THEN
  208.         IMPORT_CFM_FUNCTION DrawThemeTextBoxFrame
  209.     ENDIF
  210.  
  211. ;
  212. ; pascal OSStatus DrawThemeTextBoxFocus(const Rect *textBoxRect, Boolean hasFocus)
  213. ;
  214.     IF GENERATINGCFM THEN
  215.         IMPORT_CFM_FUNCTION DrawThemeTextBoxFocus
  216.     ENDIF
  217.  
  218. ;
  219. ; pascal OSStatus DrawThemeListBoxFrame(const Rect *listBoxRect, Boolean isActive)
  220. ;
  221.     IF GENERATINGCFM THEN
  222.         IMPORT_CFM_FUNCTION DrawThemeListBoxFrame
  223.     ENDIF
  224.  
  225. ;
  226. ; pascal OSStatus DrawThemeListBoxFocus(const Rect *listBoxRect, Boolean hasFocus)
  227. ;
  228.     IF GENERATINGCFM THEN
  229.         IMPORT_CFM_FUNCTION DrawThemeListBoxFocus
  230.     ENDIF
  231.  
  232. ;
  233. ; pascal OSStatus DrawThemeGenericFocus(const Rect *focusRect, Boolean hasFocus)
  234. ;
  235.     IF GENERATINGCFM THEN
  236.         IMPORT_CFM_FUNCTION DrawThemeGenericFocus
  237.     ENDIF
  238.  
  239.     ENDIF
  240.     ENDIF ; __APPEARANCE__ 
  241.  
  242.